package com.jd.uitls;


import com.jd.common.AjaxResult;
import com.jd.enums.ResultEnums;

/**
 * Created by Administrator on 2017/9/21/021.
 */
public class ResultUtils {

    public static AjaxResult ok(){
        return new AjaxResult(ResultEnums.SUCCESS);
    }

    public static AjaxResult error(){
        return new AjaxResult(ResultEnums.ERROR);
    }

    public static AjaxResult error(Integer code,String msg){
        return new AjaxResult(code,msg,null);
    }


}
